ubuntu16.04使用者root自動登陸
轉載:https://blog.csdn.net/hxh5801050/article/details/77801050
第一步:給root使用者設定個密碼
沒試過空密碼行不行,不折騰.
sudo passwd root
第二步:在配置檔案裡設定自啟動
1、編輯/etc/lightdm/lightdm.conf:
sudo gedit /etc/lightdm/lightdm.conf
新增如下:
[Seat:*]
autologin-guest=false
autologin-user=root
autologin-user-timeout=0
greeter-session=lightdm-gtk-greeter
2、編輯/root/.profile檔案:
sudo gedit /root/.profile
最後一行改成tty -s && mesg n || true,重啟後自動進入root使用者:
#~/.profile: executed by Bourne-compatible login shells.
if [ “$BASH” ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
tty -s && mesg n || true
相關推薦
ubuntu16.04使用者root自動登陸
轉載:https://blog.csdn.net/hxh5801050/article/details/77801050 第一步:給root使用者設定個密碼 沒試過空密碼行不行,不折騰. sudo passwd root 第二步:在配置檔案裡設定自啟動 1、編輯/etc/ligh
ubuntu16.04設定root使用者登陸圖形介面的方法
因為 ubuntu 預設不能使用root登入圖形介面,且Ubuntu預設的是root使用者不能登入圖形介面的,只能以其他使用者登入圖形介面。這樣就很麻煩,因為許可權的問題,不能隨意複製刪除檔案,用gedit編輯檔案時經常不能儲存,只能用vim去編輯。下面的步驟是怎樣使ubun
Ubuntu16.04首次root登錄設置
保存 ubun com guest etc 添加 系統設置 一行 默認 一、首次登錄root模式設置 當第一次安裝並登錄Ubuntu16.04系統時,系統默認只能使用guest模式登錄。登錄系統後,在圖像界面的右上方的系統設置中可轉換為普通用戶模式。 在普通登錄
am335x root自動登陸
用戶名 img white nag itl mage arm linux com pro TI出的ubifs文件系統默認情況下,沒有自動登陸。參考文章[《嵌入式ARM Linux開發板自啟動,跳過輸入root用戶名和密碼](https://blog.csdn.net/u01
Ubuntu16.04開啟root用戶,並遠程登錄
保存 restart show 進入 pro roo gre 原創文章 6.0 Ubuntu安裝完成默認是普通權限的用戶,root用戶需要手動開啟,並且還不含opne-ssh模塊1.給root用戶設置密碼# sudo passwd root會提示輸入unix的新密碼,這就
ubuntu16.04之mongodb自動備份
cron服務是Linux的內建服務,但它不會開機自動啟動。可以用以下命令啟動和停止服務: service cron start service cron stop service cron restart service cron reload service cron status 如果未
虛擬機器中的Ubuntu16.04啟動時自動設定解析度1920x1080
vmware不能自動適應Ubuntu16.04的解析度,而且Ubuntu16.04的display設定中也沒有1920x1080的解析度,因此需要通過修改/etc/profile檔案檔案來實現登入時自動設定解析度為1920x1080。 具體步驟如下: Ctrl+Alt+T
Ubuntu16.04禁止系統自動更新
在我的部落格Ubuntu開機無法進入系統問題(NVIDIA顯示卡驅動相關)中提到了,由於系統自動更新,顯示卡驅動出現問題,造成無法進入系統的解決方案,看到有讀者評論說還是不好解決。確實,經常在同一臺機器
Ubuntu16.04開啟root使用者,並遠端登入
Ubuntu安裝完成預設是普通許可權的使用者,root使用者需要手動開啟,並且還不含opne-ssh模組1.給root使用者設定密碼# sudo passwd root會提示輸入unix的新密碼,這就
Ubuntu16.04的root預設密碼設定
預設root密碼是隨機的,即每次開機都有一個新的root密碼。 我們可以在終端輸命令 sudo passwd,然後輸入當前使用者的密碼,enter。 終端會提示我們輸入新的密碼並確認,此時的密碼就是
ubuntu16.04設定cron自動重啟以及記錄日誌
有個ubuntu的伺服器,經常無緣無故服務掛掉,一旦掛掉就要手動重啟非常麻煩,查了很多資料,確定用crontab,但網上N多方法根本無法執行,通過一系列實驗,以下重啟方法是確定100%可以在16.04上跑的 1.確定你伺服器上cron是否已經安裝,可以用下面的命令確認 s
Ubuntukylin-16.04.4設定root使用者自動登陸
設定root使用者密碼,輸入密碼時,密碼是看不見的,注意大小寫鎖和數字鎖。 sudo passwd root 設定root使用者自動登陸 cd /usr/share/lightdm/lightdm.conf.d/ ls sudo gedit 50-ubuntu.conf
ubuntu16.04+mysql5.7+workbench中root無法登陸的bug
最近在阿里雲伺服器上安裝了mysql5.7+workench組合,出現了root賬戶無法登入,錯誤提示如下: Cannot Connect to Database Server Your connection attempt failed for user 'root' from y
ubuntu14.04 root登陸與自動登陸配置方法
ubuntu預設無法通過登陸視窗lightdm登陸root使用者,但是我們可以通過配置讓lightdm支援root登陸。 1、配置root使用者密碼 普通使用者下使用如下的命令, $sudo passwd root 輸入普通使用者密碼,再輸入root使用者密碼。 2、兩
Ubuntu16.04登陸時“讀取/root/.profile時發現錯誤”的解
在Ubuntu16.04中使能root使用者登陸後,會彈出如下所示的對話方塊。 錯誤詳細內容如下: 讀取 /root/.profile 時發現錯誤: mesg: ttyname fail
Ubuntu16.04安裝Chrome瀏覽器及解決root不能打開的問題
nod install 打開 all context nbsp file exec serve 1. 安裝桌面(emmm,不知道是否只執行第二個命令就行) # apt-get install gonme# apt-get install ubuntu-desktop2.
製作ubuntu16.04 自動安裝iso映象 二
isolinux.cfg default autoinstallprompt 0timeout 100menu title Custom Live CDmenu background splash.pngmenu color title 1;37;44label live men
Ubuntu16.04 開機自動掛載分割槽
系統版本:Ubuntu16.04 Ubuntu系統添加了一塊硬碟,開機沒有自動掛載,下邊講一下方法: 1)建立一個目錄,作為硬碟的掛載目錄,mkdir /home/shuke。 2)檢視硬碟的UUID,使用sudo blkid,結果類似下邊的輸出: /dev/sda1: UUID="
ubuntu16.04伺服器上無root許可權,配置個人tensorflow環境--cuda9.0+cuDNN7+tensorflow-gpu-1.18
本人在伺服器上已經用Anconda建立好python3.5的環境,這個網上有一大堆教程。接下來是重點。 1. cuda的安裝 https://developer.nvidia.com/cuda-downloads,選runfile(local)這個檔案下載然後執行如下程式碼 sh cuda_9
ubuntu16.04服務器上無root權限,配置個人tensorflow環境--cuda9.0+cuDNN7+tensorflow-gpu-1.18
pad driver padding 是個 pat imp 不能 nvi output 本人在服務器上已經用Anconda創建好python3.5的環境,這個網上有一大堆教程。接下來是重點。 1. cuda的安裝 https://developer.nvidia.com/c