Category: Linux(Страница 1 из 2)

Релиз Tails 6.0

Для Tails, ориентированного на конфиденциальность дистрибутива Linux на основе Debian, вышло обновление. Версия 6.0 доступна для загрузки на официальном сайте проекта.

В Tails 6.0 входит Tor Browser 13.0.10, менеджер паролей KeePassXC 2.7.4, биткоин-кошелек Electrum 4.3.4, Metadata Cleaner 2.4.0, SVG-редактор Inkscape 1.2.2, аудиоредактор Audacity 3.2.4, редактор изображений GIMP 2.10.34 и менеджер сертификатов Kleopatra 22.12.

В новой версии:

  • функция автоматического монтирования внешних устройств; если на устройстве есть расшифрованный раздел, пользователь увидит окно для ввода пароля;
  • защита от вредоносных USB-устройств: Tails игнорирует подключение внешних устройств, когда экран заблокирован;
  • поддержка тёмного режима и ночного режима с тёплыми цветами и меньшей яркостью;
  • упрощено создание скриншотов;
  • упрощена настройка учётной записи Gmail в почтовом клиенте Mozilla Thunderbird;
  • фразы для пароля постоянного хранилища генерируются на каталонском, немецком, итальянском, португальском и испанском языках;
  • текстовый редактор gedit заменён на gnome-text-editor;
  • из меню файлового менеджера убраны кнопки надёжной очистки диска (Wipe) и кнопка удаления метаданных.
  • Tails — продолжение развития ОС Incognito, релиз первого дистрибутива состоялся 23 июня 2009 года. В Tails все исходящие соединения обеспечивается системой Tor, а все неанонимные блокируются. Система предназначена для загрузки с LiveCD или LiveUSB и не оставляет следов на машине, где использовалась.

Что лучше: Windows или MacOS? Или может быть Linux? Моё мнение

Имею сказать по этому поводу.

Мой сознательный опыт в мире Windows начался в 1998 году с Windows 95 (далее были Windows 98, ME, XP, 7, 10). То что было раньше от БК Компаньон-М (zx spectrum совместимый аналог) до MS DOS и Windows 3.11 не в счет по причине юного возраста (на них я как правило играл в игры).

Мой опыт в мире Linux начался 20 лет назад, с дистрибутива Red Hat Linux. Вы себе представить не можете, сколько сил я потратил в 2003 году чтобы подключить win модем «56k Faxmodem USB U.S.Robotics» к своему RHL! Без помощи зала (статья Алексея Федорчука) я бы не смог решить эту задачу. Но как бы я смог найти статью которая помогла мне включить интернет в Linux? Правильно, я сначала запустил модем на Windows (в то время у меня были Windows ME и уже новейшая Windows XP) и нашел в поиске решение (постоянно перезагружаясь туда сюда, красноглазя и рвя на голове волосы). Установка любого устройства будь принтер, сканер и другие подключаемые периферийные устройства вызывали дикую головную боль, и страданья…

После этого опыта в моей жизни было немало Linux-дистрибутивов которые я пробовал. С переменным успехом некоторое время сидел на наследнике RHL — бесплатном дистрибутиве Fedora. Потом сидел на Ubuntu. Однако имея постоянный дискомфорт при решении любых задач по обустройству, я уверенно возвращался в Windows как к себе домой. Как будто бы из командировки возвращался домой.

При этом в серверных ОС я признаю только Linux. Начинал свой путь познания администрирования с Fedora Core Linux 6 (в конце 2006 года). Потом мигрировал на Centos. В PET-проектах пробовал разные варианты: Gentoo Linux, Debian, Ubuntu. IMHO самый удобный это Ubuntu.

Мой путь в мире Mac начался в 2008 году со скачивания пиратской версии MacOS X (хакинтош) и установки его на свой ноутбук Acer. То еще «удовольствие» скажу я вам. Из-за несовместимости железа и возможно допущенных ошибок при вскрытии оригинальной MacOS, компьютер работал нестабильно и плохо. В 2010 году я решил порадовать себя и купил ноутбук MacBookPro на MacOS X 10.6 Snow Leopard. И чтобы вы подумали? Я установил в дуалбут Windows, и работал то в одной то в другой ОС. Чаще всего в Windows, т.к. MacOS в те годы имела ряд неисправленных багов которые просто были неприятными и неудобными в работе. И к слову: MacOS X это не мак-ос-икс как все думали, а мак-ос-тэн (десять). Поэтому по старому именованию современная ОС называлась бы так: MacOS XI 11.6 Big Sur. Поэтому X опустили, и оставили просто MacOS 11.6 Big Sur.

Минусы MacOS: дорого! во первых сами компьютеры Apple мягко говоря неадекватно дорогие. раньше обновление ОС продавалось за деньги, что-то около $35 но не бесплатно ведь, в то время когда Windows всегда обновлялась бесплатно. Да, сейчас Apple исправилась, и обновляется бесплатно, но есть одно но. С каждым годом ваш комп будет устаревать, а ОС с каждым обновлением будет требовать все более нового железа и возможностей которых нет у вашего устройства. И настанет момент когда обновленная ОС просто откажется работать на старом железе, или будет работать мучительно медленно… Что в итоге и произошло с моим MacBookPro, который я успешно продал 3 года назад (за 50% от первоначальной стоимости). Также в MacOS очень дорогой софт, каждый чих нужно оплачивать (или искать «вылеченные» программы рискуя при этом утечкой данных).
Плюсы MacOS: красиво, быстро, достаточно надёжно.

Сейчас я работаю на iMac (iMac (Retina 5K, 27-inch, 2019); 3 GHz 6‑ядерный процессор Intel Core i5; 40 ГБ 2400 MHz DDR4; Radeon Pro 570X 4 ГБ) мне достаточно. У меня в дуалбуте (через bootcamp) работают и MacOS (Big Sur 11.6) и Windows 10. 99% времени я работал в Windows, остальное в MacOS. Сейчас же с выходом Windows 11 я выяснил, что апгрейд моей Windows 10 до Windows 11 на iMac невозможно, потому что загрузчик Apple-овский, а для Windows 11 это неприемлемо. Т.е. через несколько лет Windows 10 перестанет обновляться и я буду грустить, что не смогу безопасно работать (на текущем устройстве или на обновленном в будущем устройстве). Поэтому я сделал усилие над собой, и пересел с Windows 10 на MacOS. Пока больно, непривычно, но все-же лучше чем Linux.

Linux до сих пор остается уделом энтузиастов у которых куча свободного времени на «красноглазье» и преодоление препятствий при работе с этой ОС. Опытные люди, которые хотят просто работать а не танцевать с бубном, выбирают как раз либо Windows либо MacOS. Альтернатив в десктопных (комп, ноутбук) ОС больше нет, серьёзно. Это конечно не касается серверного ПО, здесь Linux действительно на коне.

Вот 2 ситуации:

Вы профессиональный строитель + мастер на все руки. Вы строите свой дом своими собственными руками. Вылизываете все, каждую балку, каждый кирпичик, каждый уголок. Все у вас правильно, как этого хотите вы. Тепло и уютно жить, так как этого захотели вы. Но что за этим стоит? Вы должны быть профессиональным строителем со знанием ВСЕХ предметных областей, обладать кучей свободного времени, сил и нервов… Да, вы построите дом вашей мечты, но какой ценой и за какой срок? И да, надо быть профессионалом, а не казаться им. Вы такой профи??? С вероятностью 95% нет.

Вы непрофессионал: вы выбираете дом своей мечты на картинке. Архитектура дома готова. Все построят профессионалы, а вам останется лишь заехать, обустроить свой быт, сделать уютное гнездышко и «жизнь поживать да добра наживать». Вам не надо учиться несколько лет в ПТУ, потом в ВУЗе, потом практиковаться десяток лет на стройке… Вы просто живете, а не выживаете. Да, в этом случае вы не сможете изменить конструкцию своего дома, но нужно ли это делать? Дом изначально сконструирован и построен профессиональными архитекторами и строителями. Вам остается найти свой вариант соотношения цена/качество и выбрать его.

Этим сравнением я сравниваю Linux и Windows/MacOS.

В Linux вы можете всё, но с маленькой (но по сути огромнейшей) оговорочкой: вы должны быть профессиональным программистом, который сможет разобраться во всех тонкостях работы системы, переписать нужные части системы под себя, и при обновлении быть готовым латать течи возникшие в системе. При этом обладать вагоном времени (время — ценнейший ресурс нашего времени, простите за тавтологию). Зато бесплатно скажете вы, и не поспоришь.

В Windows/MacOS вы просто работаете. Да, за ОС нужно заплатить. А в случае с MacOS нужно заплатить еще и за очень не дешевый компьютер от Apple. НО! Вы защищены от низкоуровневых манипуляций и красноглазья. Для всех устройств есть драйверы. Обновление системы как правило не ломает комп (исключения бывают везде, иногда по вине производителя а иногда из-за конфликта драйверов, тут опять-же никто от этого не застрахован в любой ОС). Вы просто устанавливаете систему, устанавливаете набор ПО для своей работы и начинаете работать, все просто! Не нужно танцевать с бубном чтобы настроить свой комп, чтобы он просто работал, проигрывал фильмы, играл музыку, мог играть в игры…

Еще до недавнего времени для игр было только 2 варианта: игровая консоль и Windows. Linux/MacOS X были не предназначены для игр от слова совсем (он и сейчас мало приспособлен, и только усилия Steam и подобных сделали возможным играть в принципе).

Современные Linux дистрибутивы стали такими-же жирными и требовательными к ресурсам как и Windows/MacOS. Поэтому если раньше это было оправданно на старом железе, то сейчас все ОС равны — все жирные и неповоротливые (я не говорю про легковесные вроде xfce и подобные, которые нужно также допиливать и танцевать с бубном).

Резюмируя: хотите работать а не танцевать с бубном? ставьте Windows или MacOS на компьютерах Apple. хотите красноглазить и героически совокуплять свой мозг (этой конструкцией я заменил матное слово е**ть) преодолевая трудности через каждые 5 минут? то вам дорога в любой-like-Linux дистрибутив.

WGET Скачать сайт полностью без архивов

wget -r -k -l 7 -E -nc -R "*.gz, *.tar, *.tgz, *.zip, *.pdf, *.tif, *.bz, *.bz2, *.rar, *.7z" -erobots=off --user-agent="Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36" http://www.example.com/

How to set up a SOCKS5 proxy on a virtual private server (VPS)

How to set up a SOCKS5 proxy on a virtual private server (VPS)

Proxies and Virtual Private Networks (VPNs)

Proxies and VPNs differ in nature, although they can provide some of the same services. A VPN routes all of the network traffic on a client computer through a tunnel to some other server computer. No individual application configuration is required. In contrast, using a proxy requires each application to be individually configured to ensure its traffic goes through the proxy.

The intent of a VPN is to allow a remote client computer to access network resources in some other location as if it were physically located in the same office. One of those network resources can be access to the internet, which masks the IP address of the remote computer. For this reason, VPNs have recently seen a surge in popularity as both a geo-obfuscation tool to access content not available in the client computer’s country, and as a privacy tool to prevent the client’s IP address from being discovered. A proxy is more limited in that it cannot provide access to remote resources, but it can mask your IP address and provide geo-obfuscation services.

Types of proxies

The two most common types of proxies are HTTP (Hyper Text Transfer Protocol) and SOCKS5 (Secure Sockets 5) [Link: https://www.comparitech.com/blog/vpn-privacy/socks5-proxy-vs-vpn-which-should-you-use/ ]. The SOCKS4 and SOCKS4a protocols do not support UDP or authentication. The current SOCKS5 and HTTP proxies differ in the following ways:

  • In general terms, the HTTP proxy can only proxy HTTP (TCP) traffic whereas a SOCKS5 proxy can handle any type of traffic using either TCP or UDP.
  • A SOCKS5 proxy does not interpret the traffic sent through it in any way whereas an HTTP proxy typically does. This means that a SOCKS5 proxy is more universal and can be used with more applications.
  • An HTTP proxy can only be used with HTTP clients such as a web browser, but since it is aware of the HTTP content, it can do clever things such as caching or rewriting headers in addition to the proxying service. For the purpose of anonymity and privacy, a SOCKS5 proxy is a better choice since it can be put to more general use.

In this post we’ll look at setting up the most simple kind of SOCKS5 proxy using SSH (Secure Shell). We’ll set up an inexpensive VPS at Digital Ocean, configure the SSH server and set up a few client applications to use the proxy.

Set up the proxy server

Almost any type of VPS will work for this. Some web hosting accounts might also work since all you need is non-root SSH access, but using a web hosting account as a proxy server may violate some hosts’ terms of service. Digital Ocean is a well-known and affordable cloud provider and one of their $5/month servers [Link: https://www.digitalocean.com/pricing/#droplet ] will work well for a SSH proxy.

Digital Ocean is a Virtual Private Cloud (VPC) provider meaning that you don’t purchase a particular server. Rather, you create an account and link a payment method to it. Once you’ve done that, you can create as many virtual servers as you want. VPCs tend to offer more control over system specifications and can cost much less than a traditional VPS. There’s a good explanation of the differences between a VPS and VPC here [Link: https://www.comparitech.com/blog/vpn-privacy/whats-the-difference-between-a-vpn-vps-and-vpc/ ].

To create a Droplet, click the Droplets menu item and make a few selections to customize it. I’ve selected Ubuntu 16.04 LTS (Long Term Support) as the operating system and the smallest (least expensive) size. Droplets are charged by the hour. The least expensive option will work well and only cost about $5 for the entire month.

Digital Ocean create droplet select OS and size

You’ll now want to select a location for your Droplet. Keep in mind that when you are using your proxy, your traffic will be seen as coming from the IP address of your Droplet. If you’re setting up a proxy specifically for geo-obfuscation purposes you should pick a location in or near the country that you wish to appear to be from.

Digital Ocean create droplet select Data center

Once your Droplet has been created you will receive a confirmation email from Digital Ocean with its IP address and login information.

Digital Ocean confirmation email

Configure OpenSSH on the VPS

Digital Ocean Droplets come with SSH installed and ready to go. The root user’s password is supplied in the welcome email so there’s no additional setup required on the server. But the best practice is to change the default password and create a user specifically for proxying.

Connect to the Droplet using SSH on MacOS (OSX) or Linux

Open a terminal and type the following command to connect using the IP address from your welcome email:

ssh 66.77.88.99 -l root

You will be prompted to accept the key. Enter the password from your welcome email, and then change the password.

Digital Ocean first SSH connect

Connect to the Droplet using PuTTY on Windows

If you’re using Windows, you’ll need an SSH client to connect to your Droplet. The most widely used SSH client is PuTTY [http://www.chiark.greenend.org.uk/~sgtatham/putty/].

Enter the IP address of your Droplet into the Host Name field and click the Open button.

PuTTY connect to server

Ensure the system is up to date

It’s a good idea to make sure the system software is up to date. Outdated software is a leading cause of system hacks. The two commands to do this in Ubuntu are:

apt-get update
apt-get upgrade

There was very little to upgrade on my Droplet which means Digital Ocean keeps their images updated.

Digital Ocean OS upgrade

Add a user

The Droplet comes with one user — the all-powerful root user. It is a good security practice to add a less privileged user to the system and connect to your proxy with that account.

Issue the following command to add a normal user named myuser:

adduser myuser

Set a password and at least a proper username. You don’t need to complete any other information.

Digital Ocean OS add user

We now have everything we need to use the proxy.

Connect to the proxy

In order to use the proxy to tunnel traffic it has to be connected. Unix-like operating systems have a built-in SSH client whereas Windows will need a third party application such as PuTTY [http://www.chiark.greenend.org.uk/~sgtatham/putty/]

Using SSH on MacOS (OSX) or Linux

The method for connecting to the proxy is the same for Linux and MacOS (OSX). Open a terminal and use SSH to connect like this:

ssh 66.77.88.99 -l myuser -D 12345

Replace 66.77.88.99 with the IP address from your Digital Ocean welcome letter.

The -D switch tells the SSH client to forward traffic sent to port 12345 on your local machine to your proxy. You can use any port number you’d like as long as it is above 1024. From the help file, the -D switch:

Specifies a local “dynamic” application-level port forwarding. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is forwarded over the secure channel, and the application protocol is then used to determine where to connect to from the remote machine. Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh will act as a SOCKS server.

Do not disconnect this SSH session. You can minimize it to get it out of your way because you won’t need to do anything further with it, but leave it running until you are done using the proxy.

Using PuTTY on Linux or Windows

When you open PuTTY you will be in the Session tab. Enter the IP address of your Droplet and leave the port as 22.

PuTTY Session

Navigate to the SSH -> Tunnels tab. Enter 12345 (or any port you’d like) into the Source portfield. Select the Dynamic radio button and click the Add button.

PuTTY Tunnels

If you don’t want to have to do this every time you open PuTTY, navigate back to the Sessions tab, highlight the Default Settings line in the Saved Sessions list, and click the Savebutton.

Configure your browser and other applications to use the proxy

Now that you’re connected to the proxy there are three basic ways to use it:

  1. Set each application’s networking settings to use the proxy. Not all applications support proxies, but web browsers do.
  2. Use a Plugin such as the FoxyProxy plugin for Firefox and Chrome to do the application configuration for you.
  3. Configure the operating system itself to use the proxy for all applications.

The second option is the easiest because you can quickly enable or disable the proxy, and you can configure the browser to only use the proxy for certain sites. The other two options require a lot of flipping back and forth when you want to enable or disable the proxy.

Using the application’s built-in network settings

Any application that supports SOCKS5 proxies should be able to use the SSH tunnel. Simply use the proxy host IP of 127.0.0.1 (the localhost IP) and the port of 12345 (or whatever port number you’ve selected).

In Firefox the proxy settings are found in the Preferences -> Advanced -> Network -> Settings.

Firefox configure proxy

In Chrome, you will need to click the Advanced Settings link at the bottom of the Settings page and then navigate to Network -> Change proxy Settings. Chrome does not have its own proxy settings so this will just open your operating system’s proxy settings panel.

If you’re using Internet Explorer you will find your proxy settings at Internet Options -> Connections tab -> LAN Settings button. This opens up the Windows proxy settings control panel applet. Much like Chrome, there are no dedicated Internet Explorer settings for proxies.

Internet Explorer network settings

Using a plugin for Firefox or Chrome.

There are a number of proxy plugins for Firefox and Chrome. A popular one is FoxyProxy [Link: https://getfoxyproxy.org/ ]. It sits in your browser bar and you can enable or disable the proxy by clicking on it, which is much easier than digging through your operating system or browser settings.

FoxyProxy can also be configured to exclude certain sites from using the proxy. This is useful if you want to keep the proxy running all the time, but don’t want to trip over your bank’s defenses by suddenly appearing to be in another country.

Download FoxyProxy for your browser.

FoxyProxy Firefox download

When you first launch FoxyProxy, the main window contains a proxy that’s already set up but not active. There are many options and configuration settings within FoxyProxy but we’re just going to focus on the few we need to get the proxy up and running.

Highlight the existing proxy and click the Edit Selection button.

FoxyProxy Firefox main window

Go to the Proxy Details tab and enter 127.0.0.1 as the Host IP Address and 12345 into the Port field.

FoxyProxy setup - proxies - proxy details
Click the SOCKS Proxy? checkbox and select the SOCKS5 radio button.

Next, click on the General tab and ensure the Perform remote DNS lookups on hostnames loading through this proxy is checked. This will help to prevent DNS leaks. It won’t completely hide you because WebRTC lookups will still work to discover your real IP address. You can use this tool to check DNS leaks [Link: https://www.comparitech.com/privacy-security-tools/dns-leak-test/ ]. There are plugins for Firefox and Google Chrome that will disable WebRTC functions.

FoxyProxy setup - proxies - proxy general

Close the FoxyProxy settings window and then activate the proxy by selecting Use proxy default for all URLs. You can verify that your proxy is working by visiting a site like What is my IP [https://www.whatismyip.com/], where you should now see your proxy IP address instead of your ISP’s.

If you want to identify specific URLs to use or exclude from the proxy, you will need to create a custom proxy. Click the Add New Proxy button and you will see an additional button at the top of the settings screen named URL Patterns. Click that button to set up custom filters.

FoxyProxy URL patterns button

You can enter sites and patterns to match or exclude in this screen.

FoxyProxy URL patterns

Using the operating system network settings

Instead of entering the proxy settings into each application, it’s possible to set the details once at the operating system level. When that is done, you’ll just need to tell each application to use the system level proxy.

Windows

You can access the Internet Options applet in Windows in two ways. Access the Control Panel -> Internet Options, or access the Internet Options from the settings menu in Internet Explorer.

From there, you can follow the instructions for Internet Explorer in the section above.

MacOS (OSX)

Click the Apple icon at the top left of the menu bar on your screen and select System Preferences. Select Network and then Proxies.

MacOS Settings

Click the Advanced button to access the Network settings and navigate to the Proxies tab.

MacOS Settings Network

Click the SOCKS Proxy checkbox and enter the host and port information.

MacOS Set proxy

Linux

Each Linux desktop environment has a different control panel item to configure the network settings. The two most common desktops are Gnome and KDE.

In the Gnome desktop (used by Ubuntu), the Settings -> Network panel is the place to set up the proxy.

Select the Manual option.

Ubuntu network proxy

Then set the SOCKS proxy and click the Apply system wide button.

Ubuntu network proxy settings

The KDE Desktop (used by Kubuntu) has the network settings in the Settings — System Settings -> Network Settings -> Proxy.

KDE network proxy settings

Once the proxy is set up in the operating system, each application will have to be configured to use it. That option will be in the network settings for each application. As an example, in Firefox this setting is at the top of the proxy settings.

Firefox use system proxy

Source: https://www.comparitech.com/blog/vpn-privacy/how-to-set-up-a-socks5-proxy-on-a-virtual-private-server-vps/

See also: https://www.comparitech.com/blog/vpn-privacy/socks5-proxy-vs-vpn-which-should-you-use/
See also: https://linode.com/docs/networking/vpn/create-a-socks5-proxy-server-with-shadowsocks-on-ubuntu-and-centos7/

Как в Linux найти все файлы НЕ содержащие строку

Например нам надо найти все php файлы, которые не содержат строку «/bitrix/footer.php» :

find .  -name "*.php"  -not  -ipath '.*svn*' -exec  grep  -H -E -o -c  "/bitrix/footer.php"  {} \; | grep 0

Или так (записать результат в файл):

find ./ -type f -name '*.php' -exec grep -L '/bitrix/footer.php' {} \; > result.txt

Страница 1 из 2

© 2007–2024, konyakov.ru