20131024 选题

This commit is contained in:
DeadFire 2013-10-24 11:05:41 +08:00
parent 4513ad65ab
commit a6238654f6
3 changed files with 213 additions and 0 deletions

View File

@ -0,0 +1,68 @@
Create And Manage Encrypted Folders in Linux With encfs
================================================================================
here are times when you want certain information on your computer protected from prying eyes. One way to protect your information is to encrypt your home directory. However, that does not protect your information when you are logged on to your computer. I've shown in the past how you can [use Cryptkeeper to create an encrypted folder on your system][1]. Cryptkeeper is a graphical front end to **encfs**. encfs allows you to create an encrypted folder and then mount it as a user filesystem using [FUSE][2]. In this tutorial I'll show how to use encfs from the command line to create and manage an encrypted folder on Linux.
![](http://tuxtweaks.com/wp-content/uploads/2013/10/encfs.png)
### Install encfs ###
If you are using Ubuntu or one of its derivatives like Linux Mint, you should be able to find encfs in your software repositories. In this case you can install it with
sudo apt-get install encfs
### Create an Encrypted Folder with encfs ###
Once encfs is installed on your system, you can create an encrypted folder in your home directory. In this example, I'm going to create an encrypted folder called tuxtweaks. This will be done from a terminal window. You will need to provide full path names when creating a new folder. You can use standard shortcuts though, as I will show.
encfs ~/.tuxtweaks ~/tuxtweaks
This will create two folders. The first one, .**tuxtweaks**, will contain the encrypted information. The second one, tuxtweaks, is where the decrypted version will be mounted when you want to access your information. If neither of these folders exist already, you will be prompted asking if you want to create them. Enter '**y**' at the prompts to allow the folders to be created. You should then see something like the following:
Creating new encrypted volume.
Please choose from one of the following options:
enter "x" for expert configuration mode,
enter "p" for pre-configured paranoia mode,
anything else, or an empty line will select standard mode.
If you want the strongest encryption, enter '**p**' at the prompt. Otherwise, just hit **[Enter]** and your new encrypted folder will be created with the standard options.
After that you'll see several messages listing the parameters of your new encrypted volume along with some warnings, and then a prompt to create a password for encryption. Make sure to use a password you will remember because there is no password recovery mechanism. After entering and verifying your password, the new folder will be created and mounted, ready to use.
### Using Your Encrypted Folder ###
With your new encrypted folder mounted, you can use it just like any other folder on your system with the exception that hard links will not work if you set it up in paranoia mode. I expect this won't be an issue for most users. Let's go ahead and create a simple text file in the new folder to test it out.
echo "GNU/Linux is my favorite computer operating system." >~/tuxtweaks/test.txt
Using the terminal or the file manager, you can see that you now have a new file called **test.txt** in the **tuxtweaks** folder. Upon opening this file you can see that it is a perfectly readable text file. Now navigate to your **~/.tuxtweaks** folder. This is the encrypted version of your folder. You can see that the file names don't match and if you try to view the contents of the files you'll find that they are scrambled.
### Unmounting an encfs Encrypted Folder ###
Once you are done accessing or creating data in your encrypted folder, it's best to unmount it so that your information is safely hidden away. encfs doesn't have its own command to do this. Since it created a user file system it takes advantage of the FUSE packages to handle unmounting. We'll use the fusermount command to unmount our encrypted folder.
fusermount -u ~/tuxtweaks
Navigating your home directory you can see that the tuxtweaks directory is still there. If you enter that folder though you'll find that it is empty.
### Mount an Encrypted Folder with encfs ###
The next time you want to access your encrypted data, you'll need to mount it again to decrypt it. You can just use the same command you used to create the folder in the first place.
encfs ~/.tuxtweaks ~/tuxtweaks
### Uses ###
I find that using **encfs** encrypted folders is a handy way to securely store financial information such as tax returns as well as for storing lists of log-in credentials. This way I only need to remember the password for my encrypted folder, then I can access my list of other log-in ID's and passwords.
What will you use encfs for? Let me know in the comments.
--------------------------------------------------------------------------------
via: http://tuxtweaks.com/2013/10/encrypted-folders-linux-encfs/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://tuxtweaks.com/2009/03/create-an-encrypted-folder-in-ubuntu-with-cryptkeeper/
[2]:http://fuse.sourceforge.net/

View File

@ -0,0 +1,96 @@
Install Apache With SSL in Ubuntu 13.10
================================================================================
In this short tutorial let me show you how to install Apache with SSL support. My testbox details are given below:
### The System info ###
root@ubuntu-unixmen:~# ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:b8:b4:87
inet addr:10.1.1.110 Bcast:10.1.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:feb8:b487/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1738 errors:0 dropped:0 overruns:0 frame:0
TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:168845 (168.8 KB) TX bytes:9767 (9.7 KB)
----------
root@ubuntu-unixmen:~# cat /etc/issue
Ubuntu 13.10 \n \l
### Install apache ###
sudo apt-get install apache2 apache2-doc apache2-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-bin apache2-data libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert
### Test apache page ###
Open up the browser and navigate to http://ip-address/. You should see something like this.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/10/apache2-ubuntu.png)
### Create diretory ###
Create a directory called **ssl**.
sudo mkdir /etc/apache2/ssl
### Create a self-signed certificate ###
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt
Generating a 2048 bit RSA private key.......................................................................................+++....................................+++writing new private key to '/etc/apache2/ssl/apache.key'-----You are about to be asked to enter information that will be incorporatedinto your certificate request.What you are about to enter is what is called a Distinguished Name or a DN.There are quite a few fields but you can leave some blankFor some fields there will be a default value,If you enter '.', the field will be left blank.-----Country Name (2 letter code) [AU]:
### Activate Apache SSL module ###
Run the following command to enable ssl mode.
$ a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl
Edit **/etc/apache2/sites-enabled/default-ssl.conf** fie,
<VirtualHost 10.1.1.110:443>
ServerAdmin webmaster@localhost
ServerName www.unixmen.com:443
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
### Activate Apache default ssl virtual host: ###
a2ensite default-ssl
Enabling site default-ssl.
To activate the new configuration, you need to run:
service apache2 reload
### Restart Apache: ###
sudo service apache2 restart
### Test SSL Connection ###
Open browser and navigate **to https://IP-address**.
![](http://180016988.r.cdn77.net/wp-content/uploads/2013/10/apache-cert.png)
Youre done. Cheers!
--------------------------------------------------------------------------------
via: http://www.unixmen.com/install-apache-ssl-ubuntu-13-10/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,49 @@
Using Wine to Play Games On Linux? Heres Why You Should Switch To Steam Right Now
================================================================================
![](http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2012/12/steamforlinux.png)
In the last couple of months, Steam has been getting a lot of attention. Not necessarily because of the games that its been carrying, but because of its expanding support of different operating systems. If you havent heard already, Steam has made official plans to support Linux, and has already made substantial progress with their beta Linux client. It really wont be too long before the Steam client is stable, so all that would be left to do is port games over to Linux.
Now that such a major service is available for our favorite penguin, heres a couple of reasons why you should at least consider making the switch.
### Performance ###
Ill start with the obvious with a surprising twist performance via Steam is a lot better. Of course, when compared to games played via Wine, its going to be faster because the games are played natively rather than through a compatibility layer. Performance is one of the most important aspects of gaming, so people shouldnt take this significance lightly.
Also, did I mention that Linux games played via Steam ran faster than those run on Windows? The exact same hardware produced better results on Linux for identical games. Im sure no one expected that because I know I didnt.
### Compatibility ###
![](http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2013/01/switch_steam_wine.jpg)
Whenever you buy a game, you cant be guaranteed that the game will even run with Wine. There is a database for Wine where the compatibility applications and games are listed, but thatll only save you some money by telling you that it probably wont work out as you might hope. With Steam, however, all games available for Linux are guaranteed to work, no questions asked.
With this argument, the only temporary downside is that the amount of available games for Linux is relatively small. I expect this number to grow dramatically over time.
### Steam Benefits ###
![](http://main.makeuseoflimited.netdna-cdn.com/wp-content/uploads/2013/01/switch_steam_window.jpg)
Of course, by switching to Steam you gain all of its great benefits. This includes occasionally cheaper prices (especially during sales), a completely online experience so that no physical media is ever necessary, updates to both the client and games whenever theyre released, and more.
For example, if you reinstall the operating system on a machine, you can simply open up Steam and itll automatically download and install all of your old games, letting you sit back and relax. On Windows and Mac OS X, people have been very pleased with how Steam operates, so it is a reputable place to buy your games.
### Let Your Voice Be Heard ###
Finally, by switching over to Steam, youre making a statement. Id be surprised if Steams effort towards Linux doesnt interest your gaming soul, and as a community we need to show support for projects that we appreciate. Switching to Steam will not only make Steams ventures into Linux worthwhile, but it also shows others that Linux is a competent gaming platform people historically just havent put in enough time to get to some breakthroughs.
If we can show to others that Linux people love to play games, and that they could make a profit by supporting Linux, they may be more willing to do so. And we all like more games, right?
### Conclusion ###
I absolutely understand if youre a bit skeptical about switching over to Steam when the chance is high that your games havent been added yet. However, just give it some time and check regularly. Eventually a few of your games, as well as some new ones you might enjoy, should be part of those which run just fine on Linux.
What do you think about Steams work in Linux? Have you thought about switching? Let us know in the comments!
--------------------------------------------------------------------------------
via: http://www.makeuseof.com/tag/using-wine-to-play-games-on-linux-heres-why-you-should-switch-to-steam-right-now/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出