
Linux
pcjavanet
这个作者很懒,什么都没留下…
展开
-
Ubuntu root can‘t show chrome
chrome can not startgoogle-chrome --enable-logging=stderr --log-level=4[11673:11673:0419/232003.842012:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.vim /usr/bin/google-chro..原创 2021-04-19 23:27:10 · 144 阅读 · 0 评论 -
Delete the same JAR with ls result
A folder has part jars which exist B folderA: /usr/local/tomcat/libB: /usr/local/tomcat/projectwebapps/yourProject/WEB-INF/libcd/usr/local/tomcat/libls /usr/local/tomcat/projectwebapps/you...原创 2020-04-13 14:12:09 · 159 阅读 · 0 评论 -
install pgadmin4
vim /etc/apt/sources.list.d/pgdg.list deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-...原创 2020-04-06 09:58:19 · 212 阅读 · 0 评论 -
chmod 777 根目录导致问题
不小心使用 chmod 777 /导致 sudo su - 使用不了, root 也无法登录。提示如下sudo:sudo /etc/sudoers is world writablesudo:no valid sudoers sources found ,quittingsudo:unable to initialize policy plugin执行以下pkexecchmod...原创 2020-04-02 15:43:01 · 892 阅读 · 0 评论 -
less 查找显示匹配字符
1.在用户 home目录创建~/.lessfilter touch ~/.lessfilter2.添加脚本内容#!/bin/shcase "$1" in *.awk|*.groff|*.java|*.js|*.m4|*.php|*.pl|*.pm|*.pod|*.sh|\ *.ad[asb]|*.asm|*.inc|*.[ch]|*.[ch]pp|*.[ch...原创 2019-12-19 09:26:51 · 1417 阅读 · 0 评论 -
ubuntu下jad下载的版本
jad 下载网址 http://www.varaneckas.com/jad/在ubuntu12.04 执行jad jad: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory下载的版本为原创 2012-05-27 01:15:32 · 2124 阅读 · 0 评论 -
ubuntu 错误 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)
E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源暂时不可用)E: 无法锁定管理目录(/var/lib/dpkg/),是否有其他进程正占用它 rm -rf /var/cache/apt/archives/lock rm -rf /var/lib/dpkg/lock原创 2012-06-19 14:04:53 · 1471 阅读 · 0 评论 -
ubuntu12.04+firefox13+jdk7+applet
cd /usr/lib/mozilla/pluginsln -s /usr/lib/jvm/java-7-oracle/jre/plugin/i386/ns7/libjavaplugin_oji.so ./原创 2012-06-19 14:41:48 · 824 阅读 · 0 评论 -
ubuntu12.04 直接修改/etc/hostname报错
原因修改了/etc/hostname 而没修改 /etc/hosts程序启动报错如下java.net.UnknownHostException: cool: cool: 未知的名称或服务 at java.net.InetAddress.getLocalHost(InetAddress.java:1438) at org.exoplatform.servi原创 2012-06-20 08:56:34 · 2239 阅读 · 0 评论 -
Ubuntu 12.04--Eclipse subclipse error
Failed to load JavaHL Library.These are the errors that were encountered:no libsvnjavahl-1 in java.library.pathno svnjavahl-1 in java.library.path/opt/local/lib/libsvnjavahl-1.0.0.0.dylib: no sui原创 2012-06-20 08:08:52 · 626 阅读 · 0 评论 -
ubuntu 12.04 一些设定
Install Cinnamon 1.4 on Ubuntu 12.04 sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stablesudo apt-get updatesudo apt-get install cinnamonUbuntu 12.04 root登陆原创 2012-06-19 09:20:59 · 1166 阅读 · 0 评论 -
15个rsync命令例子
服务器端启动rsync -daemon /home/xxx from:thegeekstuff.comrsync stands for remote sync.rsync is used to perform the backup operation in UNIX / Linux.rsync utility is used to sync转载 2012-05-07 09:56:14 · 1007 阅读 · 0 评论 -
Ubuntu 图像界面的SVN按照
apt-get install nautilus-script-collection-svncp -r /usr/share/nautilus-scripts/Subversion ~/.gnome2/nautilus-scripts/ 没有图形界面,第二步为添加鼠标右键功能apt-get install r原创 2012-02-17 10:48:24 · 642 阅读 · 0 评论 -
ubuntu一些设定
重置 Ubuntu 的 Gnome 桌面的设置~# cd ~~# rm -rf .gnome .gnome2 .gconf .gconfd .metacity修复 Waiting for sound system to respond System->Preferences -> Startup Applications -> 点击 ‘Add’ 命名: Pulsea原创 2012-03-19 15:26:12 · 559 阅读 · 0 评论 -
java获取Linux时区
在Tomca 启动的sh中,默认的设置是 -Duser.timezone=GMT,如果在程序中使用 Date = new Date()则对应的是零时区的时间。如果操作系统的时区也是零时区就没什么。如果不是就有时间偏差。以下可以帮助纠正import java.io.BufferedReader;import java.io.InputStream;import java.io.I原创 2012-02-27 16:50:09 · 2906 阅读 · 0 评论 -
dpkg 与apt-get
dpkg -i package.deb sudo apt-get install package 安装包sudo apt-get install package - - reinstall 重新安装包sudo apt-get -f install 修复安装"-f = ——fix-missing"显示该包的版本、安装信息等 dpkg -l package dpkg转载 2012-02-08 09:44:23 · 3326 阅读 · 0 评论 -
在Ubuntu下安装Postgresql和pgAdmin3
sudo apt-get install postgresql-8.4 postgresql-client-8.4 postgresql-contrib-8.4sudo apt-get install pgadmin3以上指令安装客户端和服务端,一些额外的工具、pgAdmin3都可以工作在数据库下工作。配置Postgresql现在我们需要重置“pos转载 2010-03-10 11:21:00 · 2476 阅读 · 0 评论 -
SHELL编程
一、Shell语法1.1、变量声明1.2、数组声明和使用1.3、特殊的变量1.4、运算和运算符1.4.1、整数运算符1.5、流程语句1.5.1、if 语句1.5.2、case语句1.5.3、select 语句1.6、循环语句1.6.1、for语句1.6.2、while 语句1.6.3、breake 和continue1.6.4、shift三、转载 2011-10-24 23:47:06 · 683 阅读 · 0 评论 -
Ubuntu 12.04 gedit 打开中文乱码问题
在ubuntu 12.04里的 gedit 版本是3.4.1中文乱码解决方法安装 dconfig-editor apt-get install dconf-tools输入命令 dconf-editor找到位置 org.gnome.gedit.preferences.encodins设置值auto-detected ['UTF-8','G原创 2012-07-05 16:14:12 · 1596 阅读 · 0 评论 -
VirtualBox的vdi映像导入遇到的uuid冲突问题
在ubuntu12.04下 已安装xp虚拟系统,如路径 '/home/pcjavanet/virtualBox/xp.vdi'拷贝文件至路径为 '/home/pcjavanet/virtualBox/xp2.vdi'赋值xp2.vdi的文件UUID命令vboxmanage internalcommands sethduuid /home/pcjavanet/virtualBox/x原创 2012-07-02 21:13:31 · 1304 阅读 · 0 评论 -
Ubuntu virtualbox不能识别 USB
sudo vim /etc/group找到 vboxusers:x:xxx改为 vboxusers:x:126:yourLoginName重启原创 2018-06-06 14:29:17 · 843 阅读 · 0 评论 -
virtualbox 不能识别USB设备
sudo usermod -G vboxusers -a currentUserName,其中currentUserName是你要使用vbox的当前用户名reboot原创 2018-03-17 00:17:59 · 6048 阅读 · 0 评论 -
Docker 设置proxy
不同版本的ubuntu应对的docker 代理方法转载 2017-07-27 12:04:50 · 3329 阅读 · 0 评论 -
Ubuntu expect使用经验
自动登录远端目标机器 autoLogin.sh#!/usr/bin/expect set password yourPasswordspawn ssh -p yourPortt xxx.xxx.xxx.xxxset timeout 30000expect "root@xxx.xxx.xxx.xxx's password:"set timeout 30000原创 2017-06-09 10:26:49 · 3864 阅读 · 0 评论 -
Ubuntu自动启动Virtualbox 实例
Ubuntu自动启动Virtualbox 实例转载 2017-06-22 15:53:16 · 2818 阅读 · 0 评论 -
vncserver xstartup
Linux vnc4server 启动窗口原创 2017-06-29 12:50:07 · 6099 阅读 · 0 评论 -
/usr/bin/env: node: 没有那个文件或目录
npm install -g bower bower install/usr/bin/env: node: 没有那个文件或目录ln -s /usr/bin/nodejs /usr/bin/noderoot@# bower -version1.7.9原创 2016-09-20 22:48:21 · 3949 阅读 · 0 评论 -
Ubuntu 下Mysql server 远端访问
1. comment /etc/mysql/mysql.conf.d/mysqld.cnf bind-address =127.0.0.112. execute sqlgrant all on *.* to root@'%' identified by 'mysql'; //root username mysql user's passwordflush privil原创 2016-09-17 00:24:03 · 418 阅读 · 0 评论 -
ubuntu can't add add-apt-
environmentuname -aLinux jerry-xia-pc 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linuxappearanceadd-apt-repository ppa:webupd8team/y-pp原创 2016-08-11 09:32:10 · 1109 阅读 · 0 评论 -
ubuntu 升级后
Error found when loading /root/.profilestdin:is not a tty解决方法注解mesg,加入 tty -s && mesg#mesg ntty -s && mesg原创 2015-12-14 08:42:43 · 690 阅读 · 0 评论 -
自动关闭tomcat
使用Tomcat/Eclipse调试的时候,经常会发生原创 2014-09-13 23:14:07 · 997 阅读 · 0 评论 -
ubuntu14.04 安装Oracle-jdk-7的设置
Download done.Removing outdated cached downloads...update-alternatives: using /usr/lib/jvm/java-7-oracle/jre/bin/java_vm to provide /usr/bin/java_vm (java_vm) in 自动模式update-alternatives: using /原创 2014-07-11 08:33:47 · 1879 阅读 · 0 评论 -
ubuntu apt-get 命令的代理设置
在/etc/apt目录下建立文件生成文件apt.conf添加内容如 Acquire::http::proxy "http://user_name:password@172.26.28.xxx:74000";原创 2013-06-14 14:46:09 · 1302 阅读 · 0 评论 -
viirtualbox安装centos报错
屏幕出现错误信息如下" unknown interrupt or fault EIP 00000060 c04011ed 000011ec"更改设置 -->系统 -->处理器-->扩展特性 [ 选中 启用PAE/NX 选项]详细如下图原创 2012-07-13 09:54:02 · 924 阅读 · 0 评论 -
戴尔台式机380+ubuntu10.04声卡解决方法
戴尔台式机380+ubuntu10.04声卡解决方法原创 2010-11-18 09:19:00 · 1139 阅读 · 0 评论 -
如何一键重启tomcat并清除缓存
如何一键重启tomcat并清除缓存原创 2010-12-01 14:12:00 · 1909 阅读 · 1 评论 -
批量添加用户
#!/bin/sh# Name: useraddmuti# Descripton: To add users to your system. Users can be list in a file.# To exec this command your ID must be 0.# Author: PopZslam@Linux.net#---------转载 2009-10-16 15:13:00 · 526 阅读 · 0 评论 -
shell判断文件,目录是否存在或者具有权限
#!/bin/shmyPath="/var/log/httpd/"myFile="/var /log/httpd/access.log"#这里的-x 参数判断$myPath是否存在并且是否具有可执行权限if [ ! -x "$myPath"]; thenmkdir "$myPath"fi#这里的-d 参数判断$myPath是否存在if [ ! -d "$myPat转载 2009-10-16 13:59:00 · 477 阅读 · 0 评论 -
如何在Linux下加载移动硬盘和光驱
1. 挂载USB 1,登陆 2,在/mnt 文件夹创建一个usbdisk目录,用来加载移动硬盘用。 3,检查核心是否加载USB模块 执行 #dmesg | grep usb 如果有"usb.c: registered....."信息说明模块已加载,否则需要执行: # modprobe usb-uhci # modprobe usb-storage #d转载 2009-10-10 11:07:00 · 1939 阅读 · 0 评论 -
Linux rar 安装
Linux 极少使用rar进行解压缩,但还是会使用rar进行解压,毕竟rar在Window平台使用者众,自然网络下载会遇到rar格式的文件,在Centos5.3 安装rarlinux-3.8.0.tar.gz 较好下载 http://d.download.youkuaiyun.com/down/1730409/moliqin 解压make install原创 2009-10-10 22:43:00 · 492 阅读 · 0 评论