-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux_setup
133 lines (76 loc) · 2.98 KB
/
linux_setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
_ _
| (_)_ __ _ ___ __
| | | '_ \| | | \ \/ /
| | | | | | |_| |> <
|_|_|_| |_|\__,_/_/\_\
=================set vim as default editor=======
sudo update-alternatives --config editor
===================visudo=========================
#to edit /etc/sudores type:
visudo
--settings--
# Default for password prompt to stay up with no user input 0=forever
Defaults passwd_timeout=0
# Defualt for a session to remember your password 0=always 0<forever (i.e a negative number)
Defaults timestamp_timeout=0
-- dissable password prompt completley--
Edit the sudoers file type:
sudo visudo
Then Find this line:
%sudo ALL=(ALL) ALL
Change the line to become:
%sudo ALL=(ALL) NOPASSWD: ALL
==================NVIDIA====================================
# If you want to revert back to stock nvidia conf file
sudo nvidia-xconfig
set nvidia as gpu
sudo mhwd-gpu --setgl nvidia
_ _ _ _
/ \ _ __ ___| |__ | (_)_ __ _ ___ __
/ _ \ | '__/ __| '_ \ | | | '_ \| | | \ \/ /
/ ___ \| | | (__| | | | | | | | | | |_| |> <
/_/ \_\_| \___|_| |_| |_|_|_| |_|\__,_/_/\_\
===========Installing debian packages on arch ==========
---option1-----
pacman -S dpkg
dpkg -i package.deb
---option2------
pacaur -S deb2targz
deb2targz filename.deb
pacman -U /path/to/filename.tar.gz
====yum on arch=========
yum search something
yum install something
yum install something.i586.rpm
==============THE KEREL===========================
#list available kernels
mhwd-kernel -l
#install a kernel
sudo mhwd-kernel -i linux40 rmc
========================================
_ _ _ _ _ _
| | | | |__ _ _ _ __ | |_ _ _ | (_)_ __ _ ___ __
| | | | '_ \| | | | '_ \| __| | | | | | | '_ \| | | \ \/ /
| |_| | |_) | |_| | | | | |_| |_| | | | | | | | |_| |> <
\___/|_.__/ \__,_|_| |_|\__|\__,_| |_|_|_| |_|\__,_/_/\_\
=====================Manage packages==========================
#Create a backup of what packages are currently installed:
dpkg --get-selections > list.txt
#Then (on another system) restore installations from that list:
dpkg --clear-selections
sudo dpkg --set-selections < list.txt
#To get rid of stale packages
sudo apt-get autoremove
#To get installed like at backup time (i.e. to install packages set by dpkg --set-selections)
sudo apt-get dselect-upgrade
--------How to list installed package and its details on ubuntu-----------
#Simple and elegant:
sudo dpkg -l | more
#or
sudo dpkg -l | less
#If you want to get the description of some specific packages say firefox:
sudo dpkg -l | grep firefox
#To get the date and time of packages being installed
cat /var/log/dpkg.log | grep " install "
#To get for specific package:
cat /var/log/dpkg.log | grep " install " | grep banshee