Posts

Showing posts from 2020

Remmina Linux to Windows10 remote access

  Reference: https://gato.intaa.net/linux/remmina

Ubuntu Firewall GUI

 gufw Reference:  https://sicklylife.jp/ubuntu/2004/gufw.html

Local Account Login .\

Local Account Login .\ .\localusername Login

Difference force create mode and create mask

Difference force create mode and create mask "create mask" と"directory mask" は共有フォルダ上に作成できるアクセス許可の上限値を指定しています。共有フォルダ内に誰でも読めるファイルを格納したくない場合は、"create mask = 0760" としておくことで、ファイルのオーナーであっても、グループ以外のメンバーが読み込めるファイルを作成することはできません。"directory mask" も同様です。  しかし、ユーザーの操作により、"create mask"より低いアクセス権の設定は可能です。これを防ぎたい場合は、似たパラメーターである "force create mode" を使います。"force create mode" で指定されたアクセス許可以外のファイルは作成できず、アクセス許可の種類を変更することはできません。 "force create mode = 660" とした場合は、グループのユーザーが書き込みできないファイルは作成できなくなります。 Reference: https://thinkit.co.jp/article/766/1?nopaging=1

email password in outlook

How to find email password in outlook 1. open File and go Account Information 2. Open Account Settings - Account Settings 3. Choose account and Repair 4. Advanced options - check "Let me repair my account manually" 5. click eye mark icon to visible password.

Device Manager for Linux

Device Manager for Linux install hardinfo sudo apt install hardinfo

Samba Users Group

Samba Users Group Useful information for Samba smb.conf https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html http://www.samba.gr.jp/project/translation/3.5/htmldocs/manpages-3/smb.conf.5.html 最初日本語ページ見つけてそのあと英語ページ見つけました。 英語があれば、日本語いらんかった。 SambaによるWindowsファイルサーバ構築 smb.conf -samba2.0 http://www.samba.gr.jp/doc/samba2.0_and_linux.html

Ubuntu Software in Ubuntu 20.04 LTS version

Ubuntu Software in Ubuntu 20.04 LTS version To install Ubuntu software, run in the terminal: sudo apt install ubuntu-software To remove Snap store package: sudo snap remove snap-store Reference: https://askubuntu.com/questions/1231557/how-do-i-reinstall-ubuntu-software-in-ubuntu-20-04-lts-version

Samba Recycle Bin

Recycle Bin Function ごみ箱機能 Samba日本語版には、ごみ箱機能と呼ばれる機能が用意されています。この機能を使用すると、ユーザーが削除したファイルを所定のフォルダに保存しておくことができます。このため、ユーザが誤って削除したファイルを復活させることが可能です。 ごみ箱機能を使用するためには、共有サービスに"recycle bin"パラメータを追加します。 [DEVELOP] path = /var/samba/development writeable = Yes recycle bin = .recycle この設定により、ユーザが共有サービス上のファイルを削除したときに、 /var/samba/development/.recycleディレクトリにファイルが移動します。 ただし、.recycleディレクトリ内のファイルは削除されずに 残ったままとなりますので、定期的にcronなどで古くなった ファイルの削除などを実施するほうが良いでしょう。 次の設定を行うと、ユーザのホームディレクトリごみ箱用としてrecycleフォルダが作成されます。 [homes]     comment = %S's Home Directories writeable = Yes     browseable = No     recycle bin = recycle Reference: https://users.miraclelinux.com/technet/document/samba/samba0013.html

netplan networkd network-manager

netplan networkd network-manager https://ubuntu.com/server/docs/network-introduction https://ubuntu.com/server/docs/network-configuration https://netplan.io/reference https://www.linux.com/topic/distributions/how-use-netplan-network-configuration-tool-linux/ https://vitux.com/how-to-configure-networking-with-netplan-on-ubuntu/ Install networkmanager with sudo apt-get install network-manager https://askubuntu.com/questions/1031439/am-i-running-networkmanager-or-networkd     # Let NetworkManager manage all devices on this system network:   version: 2   renderer: NetworkManager Static IP Address Assignment To configure your system to use static address assignment, create a netplan configuration in the file /etc/netplan/99_config.yaml. The example below assumes you are configuring your first Ethernet interface identified as eth0. Change the addresses, gateway4, and nameservers values to meet the requirements of your network. network:   versio...

Ubuntu Samba Server Configuration

Ubuntu Samba Server Configuration smb.conf [global] ## Browsing/Identification ### workgroup = WORKGROUP → ワークグループ名の設定 dos charset = CP932 → Windowsマシンとの通信時に使用する文字コードの指定 unix charset = utf-8 → Unixマシンとの通信時に使用する文字コードの指定 unix extensions = no → Macから接続する場合には必要 hosts allow = 192.168.1.0/255.255.255.0 → sambaサーバへのアクセスを許可するIPアドレスの指定 ### Debugging/Accounting ### log level = 1   → 出力するログのレベルを指定。数値は0〜10まで指定可能。数値が大きいほど詳細なログを出力 log file = /var/log/samba/log.%m → ログの保存場所の指定。%mはアクセスしてきたユーザマシン名に 置き換わる変数。つまりこの場合はユーザマシン毎にログを出力する max log size = 1000 → ログファイルの最大サイズの指定。単位はキロバイト。 左の場合は最大1MB。1MBを越えると、ログファイル末尾に 「.old」が付けられて新しいログファイルが作成される。 すでに「.old」が存在していた場合は削除されて上書きされる ###### Authentication ###### map to guest = never   → ゲスト認証の無効化。有効にする場合は「never」ではなく 「bad user」を記述 #============= Share Definitions =============# [homes] comment = Home Directories → ディレクトリの説明に記述されるコメント browseable = no → ディレクトリを共有一覧に表示しないための設定。 例えばwindowsの場合は「ネットワーク」上に表示されない。 表示する場合は「yes...

Ubuntu Samba Server Setup Procedure - Group and Permission

Ubuntu Samba Server Setup Procedure 1. Install Samba Server $ sudo apt-get install samba 2. Uninstall Samba Server $ sudo apt-get autoremove --purge samba $ sudo apt-get remove samba $ sudo apt-get autoremove samba 3. Create User      a. Setup User in Ubuntu   $ useradd -m <user>      b. Setup User in Samba Server $ pdbedit -a <user>      c. Password Change $ sudo passwd <user> 4. Create Group in Ubuntu sambaでは、sambaが動作するLinux上に存在するグループ毎に、共有するファイルやディレクトリのアクセス権を変更できます。      a.  Create Group $ groupadd <group>      b. Add User to Group $ gpasswd -a <user1> <group> $ gpasswd -a <user2> <group> User および Group 一覧は、 /etc/フォルダーの group ファイルに記載されています。 5. Change ownership and Setup Permission      a. Change Ownership $ sudo chown -R nobody:nogroup /mnt/sales   $ c...

Office 365 Password Never Expire

Office 365 Password Never Expire Important Only Office 365 global admins can perform these steps. In the admin center, go to the Settings > Settings. Go to the    Security & privacy  page. If you aren't an Office 365 global admin, you won't see the Security and privacy option. Select Password expiration policy. If you don't want users to have to change passwords, select the checkbox next to Set user passwords to expire after a number of days. Type how often passwords should expire. Choose a number of days from 14 to 730. In the second box type when users are notified that their password will expire, and then select Save. Choose a number of days from 1 to 30. When the user's password expires, they'll get a notification that appears in the lower right corner of their screen. Reference:  https://docs.microsoft.com/en-us/microsoft-365/admin/manage/set-password-expiration-policy?view=o365-worldwide

Windows 10 how to show all network computers

Windows 10 how to show all network computers 手順1. Windows10のアップデートによって無効化されたSMB 1.0/CIFS共有のサポートを有効化する方法 1. Control Panel - Programs - Programs and Features - Turn Windows features on or off プログラムメニューの「プログラムと機能」の中にある「Windowsの機能の有効化または無効化」をクリックしましょう。 2. "SMB 1.0/CIFS File Sharing Support" をクリックしてチェックボックスをオンにしたら「OK」をクリックしてパソコンを再起動しましょう。 手順2, 以下のサービスを起動させる。(サービスはコントロールパネルの管理ツールの中) スタートアップの種類を[自動((遅延開始)]に設定します。 [適用]をクリックします。 Function Discovery Provider Host Function Discovery Resource Publication Network Connections UPnP Device Host Peer Name Resolution Protocol Peer Networking Grouping Peer Networking Identity Manager Reference: https://aprico-media.com/posts/2456 https://www.blockmodule.com/archives/2874 https://applica.info/windows10-network-can-not-display http://arctica.sakura.ne.jp/cent/archives/5502

Install Gnome to Ubuntu Server 20.04 and 18.04

Install Gnome to Ubuntu Server 20.04 and 18.04 updating the repositories and package lists     sudo apt-get update && sudo apt-get upgrade Install the tasksel manager utility     sudo apt-get install tasksel Run program,     sudo tasksel

Webmin Install on Ubuntu Server 18.04

Webmin Install on Ubuntu Server 18.04   1. Add new repository     $ sudo nautiluse          Edit /etc/apt/sources.list           Add below line to the bottom of the file           deb http://download.webmin.com/download/repository sarge contrib           Save file and exit editor. 2. Add the Webmin PGP key. To let system      wget http://www.webmin.com/jcameron-key.asc      $ sudo apt-key add jcameron-key.asc 3. Update list of packages to include Webmin repository      $ sudo apt-get update 4. Install Webmin. $ sudo apt install webmin $ sudo reboot   5. Run Webmin           https://<ip_address>:10000 Output Webmin install complete. You can now login to https://your_server_ip:10000 as root with your root password, or as any user who can use `sudo`. R...

Ubuntu 20.04 with remote-desktop xrdp

xrdp remote-desktop setup 1. Install xrdp to Ubuntu 20.04 sudo apt install xrdp 2. Auto start setup after reboot sudo systemctl enable xrdp 3. Check Status sudo systemctl status xrdp 4. Firewall Setup Install gufw -GUI firewall 5. Add shell script to show side menu on Ubuntu desktop Add below text file and save as " enhanced-session-mode. sh " in home folder. --------------- script start ------------------ #!/bin/sh # Add script to setup the ubuntu session properly if [ ! -e /etc/xrdp/startubuntu.sh ]; then cat >> /etc/xrdp/startubuntu.sh << EOF #!/bin/sh export GNOME_SHELL_SESSION_MODE=ubuntu export XDG_CURRENT_DESKTOP=ubuntu:GNOME exec /etc/xrdp/startwm.sh EOF chmod a+x /etc/xrdp/startubuntu.sh fi sed -i_orig -e 's/startwm/startubuntu/g' /etc/xrdp/sesman.ini # rename the redirected drives to 'shared-drives' sed -i -e 's/FuseMountName=thinclient_drives/FuseMountName=shared-drives/g' /etc/xrdp/sesman.ini # Changed the allowed_users se...