ubuntu 安装

shadowsocks

参照raspberry,开机启动为修改/etc/rc.local:

/usr/local/bin/sslocal -c /home/luoxin/Documents/shadowsocks.json

 

 chrome

http://www.linuxidc.com/Linux/2014-04/100645.htm

sudo dpkg -i google-chrome-stable_current_amd64.deb

sudo dpkg -i google-chrome-stable_current_i386.deb

会下载到home目录

------------------

http://blog.csdn.net/kevinhg/article/details/5934462

最基本的安装命令是:dpkg -i file.deb

 -----------------

http://blog.csdn.net/fwwdn/article/details/8364941

卸载

sudo apt-get autoremove google-chrome-stable (google-chrome  按Tab键会自动完成)

安装

切换到安装文件目录

$ sudo dpkg -i file_name.deb

如果有错误,请运行以下命令

$ sudo apt-get -f install

or

$ sudo apt-get install libnspr4-0d

$ sudo apt-get install libcurl3

完成之后再运行
$ sudo dpkg -i file_name.deb

---------

switchysharp

1.http://switchysharp.com/install.html  下载离线安装

2.manual:shadowsocks 127.0.0.1:1080 socks v5

3.switch rules:online rule list  https://autoproxy-gfwlist.googlecode.com/svn/trunk/gfwlist.txt  12hours shadowsocks

autoproxy compatible list  update

4.选择auto switch mode

5.升级为proxy switchyOmege

 

Not enough space in /var/cache/apt/archives/ 直接重装系统,硬盘8G

Not enough space in /var/cache/apt/archives/

http://askubuntu.com/questions/178909/not-enough-space-in-var-cache-apt-archives

sudo apt-get autoclean

This will delete all packages not currently installed. If that doesn't free up enough space, then use sudo apt-get clean. This clears out all .debs downloaded and/or installed.

But it looks like your harddisc is out of space. Seriously out of space. 61Mb is not enough for a good working systen. I found 2 alternatives that can circumvent space related problems though both might be hard to pull of when using a virtual machine. A more permanent sollution would be to increase the size of your virtual machine (and I would also advice to use the method that allows the machine to dynamically to increase in size; VirtualBox has such a setting).


Alternative if you have a partition or external storage.

With this method you re-route the location where .debs are stored:

sudo mv -i /var/cache/apt /media/{dir_of_mounted_disc}
sudo ln -s /media/{dir_of_mounted_disc}/apt /var/cache/apt

Run the upgrade and install. After you are done you can switch back to normal with:

sudo apt-get clean
sudo unlink /var/cache/apt
sudo mv /media/{dir_of_mounted_disc}/apt /var/cache

https://ubuntuforums.org/showthread.php?t=1011090


虚拟机virtualbox中挂载新硬盘

http://liangbing8612.blog.51cto.com/2633208/652333


   在virtualbox中装好Ubuntu后,发现硬盘空间太小,怎样才能增加硬盘容量?那就是再建一个硬盘:

1. 添加新硬盘

     设置 -> Storage -> SATA控制器->右击,选择“添加虚拟硬盘”

     然后,根据需求创建合适的硬盘

 

2. 重启虚拟机

     查看现有系统的磁盘空间  PS: 或者df -h

        sudo fdisk -l

     可看到新加的虚拟硬盘,一般名为:Disk /dev/sdb

3. 给新加的硬盘分区

        fdisk /dev/sdb

     键入m,可看到帮助信息

        command (m for help):m           

     增加新分区

        command (m for help):n  

     选择基本分区,输入:p

     建一个分区

        Partition number(1-4):1 

     回车

        First cylinder (1-15908,default 1):Enter

     写入并退出

        command (m for help):w

4. 格式化磁盘分区

     用ext4格式对/dev/sdb1进入格式化

        sudo mkfs.ext4 /dev/sdb1

5. 挂载分区

     创建新的挂载点

        sudo mkdir /work

     将新磁盘分区挂载到/work目录下

        sudo mount -t ext4 /dev/sdb1 /work

     查看挂载

        df -h

     可以看到新加的硬盘:/dev/sdb1

6. 开机自动挂载

     修改文件

            sudo nano /etc/fstab

     在最后一行加入:

            /dev/sdb1 /work ext4 errors=remount-ro 0 1

     完成!

sudo mv -i /var/cache/apt /work
sudo ln -s /work/apt /var/cache/apt
 

Python包管理工具Distribute的安装

最新版本073 https://pypi.python.org/pypi/distribute/0.7.3

http://www.nowamagic.net/academy/detail/1330219

1# wget https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip --no-check-certificate
2# unzip distribute-0.7.3.zip
3# cd distribute-0.7.3
4# python2.7 setup.py install

 



 

posted @ 2016-02-09 14:45  my8100  阅读(477)  评论(0编辑  收藏  举报